﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace org.googlecoders.GetLatestChromium
{
	[XmlRoot(ElementName="changelogs")]
	public class Changelog
	{
		[XmlElement(ElementName = "log")]
		public List<Log> Logs;
	}
	
	[XmlRoot(ElementName="log")]
	public class Log
	{
		[XmlElement(ElementName = "logentry")]
		public List<LogEntry> LogEntries;
	}

	[XmlRoot(ElementName = "logentry")]
	public class LogEntry
	{
		[XmlAttribute(AttributeName="revision")]
		public int Revision;
		
		[XmlElement(ElementName="author")]
		public string Author;

		[XmlElement(ElementName = "date")]
		public DateTime Date;

		[XmlElement(ElementName = "msg")]
		public string Message;
	}
}
